Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix(pydataverse tests): Adapt to behavior change in upload file #322

Closed
wants to merge 1 commit into from

Conversation

adswa
Copy link
Member

@adswa adswa commented Jul 23, 2024

The Backstory is in #320 (comment). A change outside of datalad-dataverse resulted in a 400 bad request whenever pydataverse's upload_file() function was called without passing anything as json_str, and its default value None was used.
In the pydataverse tests we perform a simplistic upload, where this parameter hasn't yet been used. This change adds empty json to make the API call succeed.

The Backstory is in #320 (comment).
A change outside of datalad-dataverse resulted in a 400 bad request whenever
pydataverse's upload_file() function was called without passing anything
as json_str, and its default value None was used.
In the pydataverse tests we perform a simplistic upload, where this parameter .
hasn't yet benn used. This change adds empty json to make the API call succeed.
@adswa
Copy link
Member Author

adswa commented Jul 23, 2024

(this change depends on gdcc/pyDataverse#203, and should still leave three tests failing)

@adswa
Copy link
Member Author

adswa commented Jul 29, 2024

obsolete with gdcc/pyDataverse#207

@adswa adswa closed this Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant